<template>
  <div>
    <body>
      <section>
        <div class="item">
          <div class="a">backstage .</div>
          <div class="a">backstage .</div>
          <router-link to="/home"> 健身后台管理系统 </router-link>
        </div>
        <!-- <div class="item">
          <div class="a">Foll.</div>
          <div class="a">Foll.</div>
          <a>关注了解更多</a>
        </div> -->
        <div class="item">
          <div class="a">Hadoop.</div>
          <div class="a">Hadoop.</div>
          <router-link to="/big_data"> 大数据大屏展示 </router-link>
        </div>
      </section>
    </body>
  </div>
</template>

<script>
export default {
  name: "SystemNavigation",
  data() {
    return {
      loading: true
    };
  },
  mounted() {
    this.cancelLoading();
  },
  methods: {
    cancelLoading() {
      setTimeout(() => {
        this.loading = false;
      }, 500);
    }
  }
};
</script>

<style lang="scss" scoped>
* {
  /* 初始化 取消页面内外边距 */
  margin: 0;
  padding: 0;
}
body {
  /* 100%窗口高度 */
  height: 100vh;
  line-height: 50em;
  // background-color: #000;
  background-image: url("../assets/22222.jpg");
  background-size: auto 1150px;
  background-color: #000;
  opacity: 0.9;
  overflow-y: hidden;
  // background-repeat: repeat;
  /* 弹性布局 水平、垂直居中 */
  display: flex;
  justify-content: center;
  align-items: center;
}
section {
  width: 100%;
  // height: 200px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
section .item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  // width: 150px;
  // height: 100px;
}
section .item .a {
  color: #fff;
  font-style: italic;
  font-weight: bold;
  // height: 100px; run serve
  // width: 350px;
  // height: 100px;
  // font-size: 3vw;
  font-size: 65px;
  top: 0;
  opacity: 1;
  transition: top 0.5s, opacity 0.5s;
}
/* 切割文字 */
section .item .a:nth-child(1) {
  position: absolute;
  clip-path: polygon(0% 0%, 100% 0%, 100% 51%, 0% 51%);
}
section .item .a:nth-child(2) {
  position: relative;
  clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);
}
/* 触发景深效果 */
section:hover .item {
  filter: blur(10px);
  transform: scale(1.5);
  transition: filter 0.5s, transform 0.5s;
}
/* 对应的取消景深效果 */
section .item:hover {
  filter: blur(0px);
  transform: scale(1.5);
  transition: filter 0.5s, transform 0.5s;
}
/* 上半部分上移并变淡 */
section .item:hover .a:nth-child(1) {
  top: -40px;
  opacity: 0.5;
  transition: top 0.5s, opacity 0.5s;
}
/* 下半部分下移并变淡 */
section .item:hover .a:nth-child(2) {
  top: 40px;
  opacity: 0.5;
  transition: top 0.5s, opacity 0.5s;
}
/* 裂开后显示的文字 */
section .item a {
  position: absolute;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.5s;
}
section .item a:hover {
  text-decoration: underline;
}
section .item:hover a {
  opacity: 1;
  transition: opacity 0.5s;
}
</style>
